#define _CRT_SECURE_NO_WARNINGS
int* twoSum(int* numbers, int numbersLen, int target, int* returnSize)
{
    *returnSize = 2;
    int* ret = (int*)calloc(*returnSize, sizeof(int));
    int i = 0;
    int j = 0;
    for (i = 0; i < numbersLen; i++)
    {
        for (j = i + 1; j < numbersLen; j++)
        {
            if (numbers[i] - 10 > target)
            {
                break;
            }
            if (numbers[i] + numbers[j] == target)
            {
                ret[0] = i + 1;
                ret[1] = j + 1;
                goto end;
            }
        }
    }
end:
    return ret;
}